package com.atguigu.prototype.improve;

/**
 * @author LYJ
 * @Description
 * @date 2021 年 09 月 10 日 上午11:13
 */
public class Client {
    public static void main(String[] args) {
        Sheep sheep = new Sheep("tom",18,"白色");
        Sheep friend = new Sheep("tony",19,"黑色");
        sheep.setFriend(friend);
        Sheep sheep1 = (Sheep)sheep.clone();
        System.out.println(sheep);
        System.out.println(sheep.getFriend().hashCode());
        System.out.println(sheep1);
        System.out.println(sheep1.getFriend().hashCode());
    }
}
